Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name |
fmod() |
Examples |
double c = fmod(3.5, 2.2); // Sets c to 1.29
double d = fmod(4.5, 5.0); // Sets d to 4.5 |
Description |
The fmod() function returns returns the floating-point remainder of x / y. |
Syntax |
fmod(x, y) |
Parameters |
x |
double, float or int |
y |
double, float or int |
|
Returns |
double |
Usage |
Application |
Updated on January 11, 2010 09:58:46pm PST